package com.carhome.bean;

import com.carhome.bean.json.ArticleFragment1Focusimg;
import com.carhome.bean.json.ArticleFragment1Headlineinfo;
import com.carhome.bean.json.ArticleFragment1News;
import com.carhome.bean.json.ArticleFragment1Topnewsinfo;

public class ArticleNewsInfo {
	public int id;
	public String title;
	public String type;
	public String time;
	public String smallpic;
	public int replycount;
	public int pagecount;
	public int jumppage;
	public String indexdetail;
	public int JumpType;
	public String lasttime;
	public int newstype;
	public String jumpurl;
	public int mediatype;
	public String updatetime;
	public String imgurl;
	public int pagetindex;

	public void setDataFromNews(ArticleFragment1News news) {
		id = news.id;
		title = news.title;
		mediatype = news.mediatype;
		type = news.type;
		time = news.time;
		indexdetail = news.indexdetail;
		smallpic = news.smallpic;
		replycount = news.replycount;
		pagecount = news.pagecount;
		jumppage = news.jumppage;
		lasttime = news.lasttime;
		newstype = news.newstype;
		updatetime = news.updatetime;
	}

	public void setDataFromHeadLineInfo(ArticleFragment1Headlineinfo headlineinfo) {
		id = headlineinfo.id;
		title = headlineinfo.title;
		mediatype = headlineinfo.mediatype;
		type = headlineinfo.type;
		time = headlineinfo.time;
		indexdetail = headlineinfo.indexdetail;
		smallpic = headlineinfo.smallpic;
		replycount = headlineinfo.replycount;
		pagecount = headlineinfo.pagecount;
		jumppage = headlineinfo.jumppage;
		lasttime = headlineinfo.lasttime;
		updatetime = headlineinfo.lasttime;
	}

	public void setDataFromFocuingNews(ArticleFragment1Focusimg focuingNews) {
		updatetime = focuingNews.updatetime;
		id = focuingNews.id;
		imgurl = focuingNews.imgurl;
		title = focuingNews.title;
		type = focuingNews.type;
		replycount = focuingNews.replycount;
		JumpType = focuingNews.JumpType;
		jumpurl = focuingNews.jumpurl;
		mediatype = focuingNews.mediatype;
		
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getSmallpic() {
		return smallpic;
	}

	public void setSmallpic(String smallpic) {
		this.smallpic = smallpic;
	}

	public int getReplycount() {
		return replycount;
	}

	public void setReplycount(int replycount) {
		this.replycount = replycount;
	}

	public int getPagecount() {
		return pagecount;
	}

	public void setPagecount(int pagecount) {
		this.pagecount = pagecount;
	}

	public int getJumppage() {
		return jumppage;
	}

	public void setJumppage(int jumppage) {
		this.jumppage = jumppage;
	}

	public String getIndexdetail() {
		return indexdetail;
	}

	public void setIndexdetail(String indexdetail) {
		this.indexdetail = indexdetail;
	}

	public int getJumpType() {
		return JumpType;
	}

	public void setJumpType(int jumpType) {
		JumpType = jumpType;
	}

	public String getLasttime() {
		return lasttime;
	}

	public void setLasttime(String lasttime) {
		this.lasttime = lasttime;
	}

	public int getNewstype() {
		return newstype;
	}

	public void setNewstype(int newstype) {
		this.newstype = newstype;
	}

	public String getJumpurl() {
		return jumpurl;
	}

	public void setJumpurl(String jumpurl) {
		this.jumpurl = jumpurl;
	}

	public int getMediatype() {
		return mediatype;
	}

	public void setMediatype(int mediatype) {
		this.mediatype = mediatype;
	}

	public String getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(String updatetime) {
		this.updatetime = updatetime;
	}

	public String getImgurl() {
		return imgurl;
	}

	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	public int getPagetindex() {
		return pagetindex;
	}

	public void setPagetindex(int pagetindex) {
		this.pagetindex = pagetindex;
	}


}
